#include <REGX52.H>

void Delay500ms()	//@11.0592MHz
{
	unsigned char data i, j, k;

	//_nop_();
	i = 4;
	j = 129;
	k = 119;
	do
	{
		do
		{
			while (--k);
		} while (--j);
	} while (--i);
}

void main(){
	P2=0xfe;
	for(;;){
		Delay500ms();
		P2<<=1;
		P2%=0x100;
		if(P2!=0xfe) P2++;
	}
}